package extrator;

import config.Config;
import util.Gadget;

public class textExtract {
	public static void main(String[] args) {
		String step1Folder = "NameBaiduResume_resume";
		String step2Folder = "NameBaiduResume_resume_txt";

//		Gadget.getTextFromHtmlFolder(Config.basePath + step1Folder, 
//				Config.basePath + step1Folder);
//		System.out.println(Config.basePath + "NameBaiduResume_resume: Extraction Finished!");
//		
//		Gadget.tidyTextFromFolder(Config.basePath + step2Folder, 
//				Config.basePath + step2Folder);
//		System.out.println(Config.basePath + "NameBaiduResume_resume: Tidy Finished!");
		
//		Gadget.deleteFileFromFolder(Config.basePath + "NameBaiduResume_resume_txt_tidy");
//		System.out.println(Config.basePath + "NameBaiduResume_resume_txt_tidy: delete big and small file finished!");
		
		Gadget.delInvalidFileLine(Config.basePath + "NameBaiduResume_resume_txt_tidy");
		
		Gadget.deleteFileFromFolder(Config.basePath + "NameBaiduResume_resume_txt_tidy");
		System.out.println(Config.basePath + "NameBaiduResume_resume_txt_tidy: delete big and small file finished!");
	}
}
